from django.urls import path
from .views import AmapWebKeyView, GeocodeView, PoiSearchView, SaveLocationView, JobLocationView

urlpatterns = [
    path("web-key/", AmapWebKeyView.as_view(), name="amap_web_key"),  # 获取前端 Key
    path("geocode/", GeocodeView.as_view(), name="geocode"),          # 地理编码
    path("poi-search/", PoiSearchView.as_view(), name="poi_search"),  # POI 搜索
    path("save-location/", SaveLocationView.as_view(), name="save_location"),  # 保存经纬度
    path("job-location/", JobLocationView.as_view(), name="get_location")  # 获取所有职位的经纬度
]